package gravitationally_adjustable_physical_ball;

import java.awt.*;

public class Ground {
    private static int y;
    public void draw(Graphics g){
        g.setColor(Color.CYAN);
        g.fillRect(0,y-5,800,5);
    }
    public Ground(){
        y=650;
    }

    public static void setY(int y) {
        Ground.y = y;
    }

    public static int getY() {
        return y;
    }
}
//地面，碰到就速度归零